<?php /* Smarty version Smarty-3.0.8, created on 2013-06-12 01:28:00
         compiled from "./templates/puzzle/default.tpl" */ ?>
<?php /*%%SmartyHeaderCode:83449451351b7b280046b89-53568390%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '38f5f3ddddc0e900abe618dc176d44870a67f0a8' => 
    array (
      0 => './templates/puzzle/default.tpl',
      1 => 1370993278,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '83449451351b7b280046b89-53568390',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_date_format')) include '/Users/jaspermutsaerts/Sites/raadselbak/smarty/plugins/modifier.date_format.php';
?><?php $_template = new Smarty_Internal_Template("header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>

<div class="section">
<h2>Raadsels</h2>
<table>
	<?php  $_smarty_tpl->tpl_vars['oPuzzle'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('aPuzzles')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['oPuzzle']->key => $_smarty_tpl->tpl_vars['oPuzzle']->value){
?>		
		<tr>
			<td>
				<a href="/puzzle/view/<?php echo $_smarty_tpl->getVariable('oPuzzle')->value->getId();?>
"><?php echo $_smarty_tpl->getVariable('oPuzzle')->value->name;?>
</a>
				<span class="author">Geplaatst op <?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('oPuzzle')->value->date,'%d-%m-%Y om %H:%M');?>
 door <?php echo $_smarty_tpl->getVariable('oPuzzle')->value->getUser()->getFullname();?>
</span>
			</td>
		</tr>	
	<?php }} else { ?>
		<tr class="noresults">
			<td>
				Er zijn nog geen raadsels
			</td>
		</tr>	
	<?php } ?>	
			
</table>
</div>
<?php $_template = new Smarty_Internal_Template("footer.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>